//
//  MLDHomeTitleButton.swift
//  Sina
//
//  Created by 万世豪情 on 15/10/15.
//  Copyright © 2015年 万世豪情. All rights reserved.
//

import UIKit

class MLDHomeTitleButton: UIButton {

    override func layoutSubviews() {
        super.layoutSubviews()
        
        titleLabel?.x = 0
        
        imageView?.x = CGRectGetMaxX(titleLabel?.frame ?? CGRectZero) + 5
    }
    
    override func sizeToFit() {
        super.sizeToFit()
        width = width + 5
    }
}
